<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Clients extends CI_Controller {

    public function index()
    {
        
    }
    public function add()
    {  
        $data = array();
        $data['name'] = $this->input->post('name');
        $data['ruc'] = $this->input->post('ruc');
        $data['address'] = $this->input->post('address');
        $data['telephone'] = $this->input->post('telephone');
        $data['email'] = $this->input->post('email');
        $this->load->model('Clients_model');
        $this->Clients_model->add($data);
        redirect('/sales/add');
	}
}